package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.OperateLogDO;
import com.maybach.common.query.OperateLogQuery;

import java.util.List;


/**
 * Manager for OperateLog.
 */
public interface OperateLogManager {
    /**
     * query count by query condition.
     */
    int countByQuery(OperateLogQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(OperateLogQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(OperateLogDO record);

    /**
     * insert selective.
     */
    long insertSelective(OperateLogDO record);

    /**
     * select by query condition.
     */
    List<OperateLogDO> selectByQuery(OperateLogQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<OperateLogDO> selectByQueryWithPage(OperateLogQuery query);

    /**
     * select by primary key.
     */
    OperateLogDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( OperateLogDO record,  OperateLogQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(OperateLogDO record, OperateLogQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(OperateLogDO record);
}